
<div *ngIf="testEntity">
    <h2><span jhiTranslate="studyng6App.testEntity.detail.title">Test Entity</span> {{testEntity.id}}</h2>
    <hr>
    <jhi-alert-error></jhi-alert-error>
    <dl class="row-md jh-entity-details">
        <dt><span jhiTranslate="studyng6App.testEntity.fileField">File Field</span></dt>
        <dd>
            <div *ngIf="testEntity.fileField">
                <a (click)="openFile(testEntity.fileFieldContentType, testEntity.fileField)">
                    <img [src]="'data:' + testEntity.fileFieldContentType + ';base64,' + testEntity.fileField" style="max-width: 100%;" alt="testEntity image"/>
                </a>
                {{testEntity.fileFieldContentType}}, {{byteSize(testEntity.fileField)}}
            </div>
        </dd>
    </dl>

    <button type="submit"
            (click)="previousState()"
            class="btn btn-info">
        <span class="fa fa-arrow-left"></span>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
    </button>

    <button type="button"
            [routerLink]="['/', { outlets: { popup: 'test-entity/'+ testEntity.id + '/edit'} }]"
            replaceUrl="true"
            queryParamsHandling="merge"
            class="btn btn-primary">
        <span class="fa fa-pencil"></span>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
    </button>
</div>
